package com.bkhech.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.bkhech.pojo.Friendship;
import com.bkhech.pojo.dto.FriendshipDTO;
import com.bkhech.pojo.vo.ContactsVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * FriendshipMapper
 * 朋友关系表 Mapper 接口
 *
 * @author guowm
 * @date 2024-11-06
 */
@Repository
public interface FriendshipMapper extends BaseMapper<Friendship> {

    /**
     * 查询好友关系列表
     *
     * @param friendshipDTO 查询条件
     * @return
     */
    List<ContactsVO> queryMyFriends(@Param("friendshipDTO") FriendshipDTO friendshipDTO);

}
